<template>
	<view class="app">
		<view class="app-1">
			<image :src="`http://webfwjs.xlygrcw.com/web/img/89.png`" mode="widthFix"></image>
		</view>
		<view class="app-2">
			<view class="" @tap="onPage('/Atouzi/pages/qiye/yuanquzhuce/index')">
				<image :src="`http://webfwjs.xlygrcw.com/web/img/90.png`" mode="widthFix"></image>
				<text>园区企业注册</text>
			</view>
			<view class="" @tap="onPage('/Bzhengce/pages/haoyou/jiaoliu/index')">
				<image :src="`http://webfwjs.xlygrcw.com/web/img/91.png`" mode="widthFix"></image>
				<text>交流群</text>
			</view>
			<view class="">
				<image :src="`http://webfwjs.xlygrcw.com/web/img/92.png`" mode="widthFix"></image>
				<text>办事申请</text>
			</view>
			<view class="" @tap="onPage('/Bzhengce/pages/zhengcechaxun/index')">
				<image :src="`http://webfwjs.xlygrcw.com/web/img/93.png`" mode="widthFix"></image>
				<text>政策搜索</text>
			</view>
			<view class="" @tap="onPage('/Atouzi/pages/qiye/jianyifankui/index')">
				<image :src="`http://webfwjs.xlygrcw.com/web/img/94.png`" mode="widthFix"></image>
				<text>建议与反馈</text> 
			</view>
		</view>
		<view class="bank"></view>
		<scroll-view scroll-x="true" style="white-space: nowrap;">
			<view class="app-4">
				<view class="" :class="{'on':curIndex==0}" @tap="onTab(0)">
					资讯列表 
				</view>
				<view class="" :class="{'on':curIndex==1}" @tap="onTab(1)">
					     单位招聘
				</view>
				<view class="" :class="{'on':curIndex==2}" @tap="onTab(2)">
					     个人求职
				</view>
			</view>
		</scroll-view>
		<view class="app-5" v-if="curIndex==0">
			<view class="" v-if="list.length>0">
				<view class="list">
					<view v-for="(item,index) in list" :key="index">
						<view class="list-1">
							<view class="">
								<image :src="`http://webfwjs.xlygrcw.com/web/img/21.png`" mode="widthFix"></image>
							</view>
							<image :src="`http://webfwjs.xlygrcw.com/web/img/2.png`" mode="aspectFill"></image>
						</view>
						<view class="list-2">
							<text>连云港市三家企连云港市三家企业获批省级博士后创新实践基地业获批省级博士后创新实践基地</text>
							<text>2019/10/20</text>
						</view>
					</view>
				</view>
				<loading-text :loadingText='loadingText'></loading-text>
			</view>
			<view class="" v-else>
				<empt></empt>
			</view>
		</view>
		<view class="app-6" v-if="curIndex==1">
			<view class="" v-if="list.length>0">
				<view class="">
					<view v-for="(item,index) in list" :key="index" class="list">
						<view class="">
							<text>UI设计师</text>
							<text>12-16千/月</text>
						</view>
						<view class="">
							<text>海州区</text>
							<text>2020-12-14</text>
						</view>
						<text>连云港华舜网络科技有限公司</text>
					</view>
				</view>
				<loading-text :loadingText='loadingText'></loading-text>
			</view>
			<view class="" v-else>
				<empt></empt>
			</view>
		</view>
		<view class="app-6" v-if="curIndex==2">
			<view class="" v-if="list.length>0">
				<view class="">
					<view v-for="(item,index) in list" :key="index" class="list">
						<view class="">
							<text>Web前端工程师</text>
							<text>12-16千/月</text>
						</view>
						<view class="">
							<text>海州区</text>
							<text>2020-12-14</text>
						</view>
						<text>连云港华舜网络科技有限公司</text>
					</view>
				</view>
				<loading-text :loadingText='loadingText'></loading-text>
			</view>
			<view class="" v-else>
				<empt></empt>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			curIndex: 0,
			list: ['',],
			loadingText: '没有数据了',
		};
	},
	components: {},
	onLoad() {
		
	},
	methods: {
		onPage(url){
			uni.navigateTo({
				url:url
			})
		},
		onTab(ind){
			this.curIndex = ind
		}
	}
};
</script>

<style lang="scss">
@import './index.scss'
</style>
